cmake_minimum_required(VERSION 3.5 FATAL_ERROR)
project(mnist_out)
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_SOURCE_DIR}/bin)
set(Torch_DIR /libtorch/share/cmake/Torch)
set(CMAKE_CXX_STANDARD 11)


#find_package(OpenCV REQUIRED)
find_package(Torch REQUIRED)

set(SOURCE_FILES main.cpp )
add_executable(out ${SOURCE_FILES})
target_link_libraries(out  ${TORCH_LIBRARIES})
#target_link_libraries(out ${OpenCV_LIBS}  ${TORCH_LIBRARIES})
set_property(TARGET  out PROPERTY CXX_STANDARD 11)
